
import QtQuick 2.15
import QtQuick.Layouts 1.15
import org.ukui.panel.widgets 1.0

WidgetItem {
    property bool panelOrientation: (Widget.orientation == ContainerProperty.Horizontal)

    Layout.fillWidth: panelOrientation ? false : true
    Layout.fillHeight: panelOrientation ? true : false
    Layout.preferredWidth: childrenRect.width
    Layout.preferredHeight: childrenRect.height
    clip: true

    // TrayView {
    //     itemOrientation: parent.panelOrientation
    //     height: parent.panelOrientation ? parent.height : childrenRect.height
    //     width: parent.panelOrientation ? childrenRect.width : parent.width
    //     itemWidth: 32
    //     itemHeight: 32
    // }

    SystemTrayView {
//        height: parent.panelOrientation ? parent.height : childrenRect.height
//        width: parent.panelOrientation ? childrenRect.width : parent.width
    }

}
